package cn.iocoder.yudao.module.mybusiness.mapper;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.mybusiness.domain.Facility;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface FacilityMapper extends BaseMapperX<Facility> {

    @Select("select craft from facility where is_delete = 0 group by craft")
    @Results(id = "java.lang.String")
    List<String> selectCraft();
}
